<template>
  <div id="app">    
    <router-view v-wechat-title="$route.meta.title" :key="$route.fullPath" />
    <BackToUp />
  </div>
</template>
<script>
//BackToUp 自动返回顶部
import BackToUp from "@/components/BackToUp.vue";

export default {
  name: "App",
  components: {
    BackToUp,
  },
  data() {
    return {
      formData: {
        in_language: "zh-CN",
        in_language_file: localStorage.getItem("lang")
          ? localStorage.getItem("lang")
          : "zh",
      },
    };
  },  
  mounted() {
    this.initI18nData();
  },
  methods: {
    initI18nData() {
      // console.log(this.formData.in_language_file);
      this.$i18n.locale = this.formData.in_language_file;
    },
  },
};
</script>
<style>
body {
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Helvetica,
    Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
  background-color: #f1f2f5;
}

* {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
}

a.title_link {
  color: rgb(235, 115, 64);
  cursor: pointer;
}

a.title_link:hover {
  text-decoration: underline;
}

.personal {
  fill: rgba(29, 155, 240, 1);
}

.organizaion {
  fill: rgba(255, 215, 0, 1);
}
</style>
